//
//  ManagementDataModel.h
//  ManagementByObjectives
//
//  Created by 寺田 篤史 on 11/09/26.
//  Copyright (c) 2011 __MyCompanyName__. All rights reserved.
//
#import <sqlite3.h>
#import "FMDatabase.h"

@interface ManagementDataModel : NSObject{
    int recordId;
    int gender;
    NSString* userName;
}

@property (nonatomic, readwrite) int recordId;
@property (nonatomic, readwrite) int gender;
@property (nonatomic, readwrite, retain) NSString* userName;

+(NSMutableArray*)selectAll;
+(int) countAll;
+(ManagementDataModel*)selectById:(int)recordId;
+(int) saveId:(int)recordId gender:(int)gender userName:(NSString*)userName;
+(void) deleteId:(int)recordId;

// local
+(ManagementDataModel*) createAccountModel:(FMResultSet*)rs;

@end
